<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
  <f:layout name="Default" />

  This template displays a NEW form for the current domain object.

  If you modify this template, do not forget to change the overwrite settings
  in /Configuration/ExtensionBuilder/settings.yaml:
    Resources:
      Private:
        Templates:
          New.html: keep

  Otherwise your changes will be overwritten the next time you save the extension in the extension builder

  <f:section name="content">
	<f:flashMessages />
	<f:render partial="FormErrors" arguments="{object:Dicttype}" />
	<div class="panel panel-default">
	    <div class="panel-body">
			<f:form id="NewEditDicttypeValid" action="create"  name="dicttype" object="{dicttype}" >
	            <fieldset>
	                <legend>新增字典大类</legend>
	                <table  id="orderTable" class="tx_projectsystem table table-hover table-light">
						<thead>
							<tr class="uppercase">
								<th width="30%">类别名称<font color="red">*</font></th>
								<th width="50%">类别描述<font color="red">*</font></th>
								<th width="10%">排序<font color="red">*</font></th>
								<th class="text-center"><input type="button" name="insert"  value="增加一行" class="btn btn-info btn-xs" onclick="insertNewRow()" /></th>
							</tr>
						</thead>
	                    <tbody>
							<tr id="row0">
								<td><f:form.textfield name="name[]" id="name0" class="form-control" /></td>
								<td><f:form.textarea name="remarks[]" id="remarks0" cols="20" rows="1" class="form-control" /></td>
								<td><f:form.textfield name="sort[]" id="sort0" value="1" class="form-control" /></td>
								<td  class="text-center">
									<input type="button" name="delete" class="btn btn-xs btn-danger" value="删 除" onclick="deleteSelectedRow('row0')" />
								</td>
							</tr>
						</tbody>
					</table>
	                <div class="horizontal-space"></div>
	                <div class="form-buttons">
	                    <f:form.submit class="btn btn-success" id="saveData" value="保存数据" />
						<f:link.action action="list" class="btn btn-default">返回列表</f:link.action>
	                </div>
	            </fieldset>
	        </f:form>
			<script type="text/javascript" src="{f:uri.resource(path:'JavaScript/dicttype_check.js')}"></script>
	    </div>
	</div>
  </f:section>
</html>